/*
 * @Author: 刘润泽
 * @Date: 2023-02-22 19:39:56
 * @LastEditors: 刘润泽
 * @LastEditTime: 2023-02-23 19:27:16
 * @Description: 
 */
package server.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName transfusion_application_information
 * @author Galaxy
 */
@TableName(value = "transfusion_application_information")
@Data
public class TransfusionApplicationInformation implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT) // 创建注解
    private Date gmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE) // 更新注解
    private Date gmtModified;

    @TableField(value = "transfusion_number")
    private String transfusionNumber;

    @TableField(value = "blood_number")
    private String bloodNumber;

    @TableField(value = "patient_id")
    private String patientId;

    @TableField(value = "dispense_flag")
    private String dispenseFlag;

    @TableField(value = "abo_blood_type")
    private String aboBloodType;

    @TableField(value = "rh_blood_type")
    private String rhBloodType;

    @TableField(value = "blood_component")
    private String bloodComponent;

    @TableField(value = "blood_count")
    private Integer bloodCount;

    @TableField(value = "state")
    private String state;

    /**
     * 1代表删除，0代表未删除
     */
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = -1605697361772436964L;
}